package dto;

import java.util.Date;

/**
 * @author Jonathan Maret
 * Class used to manage absence
 *
 */
public class DTOAbsence {
	private int id;
	private int contact_idcontact;
	private Date date;
	private String period;
	private int typeOfAbsence;
	private String comment;
	private boolean mailSent;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getContact_idcontact() {
		return contact_idcontact;
	}
	public void setContact_idcontact(int contact_idcontact) {
		this.contact_idcontact = contact_idcontact;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getPeriod() {
		return period;
	}
	public void setPeriod(String period) {
		this.period = period;
	}
	public int getTypeOfAbsence() {
		return typeOfAbsence;
	}
	public void setTypeOfAbsence(int typeOfAbsence) {
		this.typeOfAbsence = typeOfAbsence;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	/**
	 * Constructor, to create a class you need all required field
	 * @param id
	 * @param contact_idcontact
	 * @param date
	 * @param period
	 * @param typeOfAbsence
	 * @param comment
	 */
	public DTOAbsence(int id, int contact_idcontact, Date date, String period,
			int typeOfAbsence, String comment,boolean mailSent) {
		super();
		this.id = id;
		this.contact_idcontact = contact_idcontact;
		this.date = date;
		this.period = period;
		this.typeOfAbsence = typeOfAbsence;
		this.comment = comment;
		this.mailSent = mailSent;
	}
	public boolean isMailSent() {
		return mailSent;
	}
	public void setMailSent(boolean mailSent) {
		this.mailSent = mailSent;
	}
	


}
